import {useEffect} from "react";

const useLogLife = (name) => {
  useEffect(() => {
    console.log(name + "组件被创建")
    return () => {
      console.log("组件被销毁")
    }
  }, [])
}

export default useLogLife;